<!--
*Author：富行天下团队
 
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/food/Fuser.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/Food/Fuser.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'user_id',
                    footer: "Foots",
                    cnName: '用户记录',
                    name: 'Fuser',
                    url: "/Fuser/",
                    sortName: "user_id"
                },
                extend: extend,
                editFormFields: {},
                editFormOptions: [],
                searchFormFields: {},
                searchFormOptions: [],
                columns: [{field:'user_id',title:'用户id',type:'int',width:90,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'open_id',title:'微信openid(唯一标示)',type:'string',width:220,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'mpopen_id',title:'微信公众号openid',type:'string',width:220,align:'left',sortable:true},
                       {field:'appopen_id',title:'openappid',type:'string',width:220,align:'left'},
                       {field:'union_id',title:'微信开放平台id',type:'string',width:220,align:'left'},
                       {field:'reg_source',title:'注册来源',type:'string',width:90,align:'left'},
                       {field:'nickName',title:'微信昵称',type:'string',width:220,align:'left'},
                       {field:'mobile',title:'手机号',type:'string',width:90,align:'left'},
                       {field:'password',title:'密码',type:'string',width:180,align:'left'},
                       {field:'avatarUrl',title:'微信头像',type:'string',width:220,align:'left'},
                       {field:'gender',title:'性别0=女1=男2=未知',type:'int',width:90,align:'left'},
                       {field:'country',title:'国家',type:'string',width:90,align:'left'},
                       {field:'province',title:'省份',type:'string',width:90,align:'left'},
                       {field:'city',title:'城市',type:'string',width:90,align:'left'},
                       {field:'address_id',title:'默认收货地址',type:'int',width:90,align:'left'},
                       {field:'balance',title:'用户可用余额',type:'decimal',width:90,align:'left'},
                       {field:'points',title:'用户可用积分',type:'int',width:90,align:'left'},
                       {field:'pay_money',title:'用户总支付的金额',type:'decimal',width:90,align:'left'},
                       {field:'expend_money',title:'实际消费的金额(不含退款)',type:'decimal',width:90,align:'left'},
                       {field:'grade_id',title:'会员等级id',type:'int',width:90,align:'left'},
                       {field:'referee_id',title:'推荐人id',type:'int',width:90,align:'left'},
                       {field:'total_points',title:'累计积分',type:'int',width:90,align:'left'},
                       {field:'total_invite',title:'总邀请人数',type:'int',width:90,align:'left'},
                       {field:'user_type',title:'供应商状态1普通用户2供应商',type:'int',width:90,align:'left'},
                       {field:'gift_money',title:'虚拟币，刷礼物',type:'int',width:90,align:'left'},
                       {field:'gift_supplier_id',title:'新人礼包门店id',type:'string',width:220,align:'left'},
                       {field:'birthday',title:'生日',type:'int',width:90,align:'left'},
                       {field:'receive_time',title:'生日礼物领取时间',type:'int',width:90,align:'left'},
                       {field:'send_time',title:'发送时间',type:'int',width:90,align:'left'},
                       {field:'is_delete',title:'是否删除',type:'int',width:90,align:'left'},
                       {field:'app_id',title:'小程序id',type:'int',width:90,align:'left'},
                       {field:'modifier',title:'修改人',type:'string',width:180,align:'left'},
                       {field:'modifyDate',title:'修改时间',type:'datetime',width:90,align:'left',sortable:true},
                       {field:'modifyID',title:'修改人ID',type:'int',width:90,hidden:true,align:'left'},
                       {field:'createDate',title:'创建时间',type:'datetime',width:90,align:'left',sortable:true},
                       {field:'createID',title:'创建人ID',type:'int',width:90,hidden:true,align:'left'},
                       {field:'creator',title:'创建人',type:'string',width:180,align:'left'},
                       {field:'merchantCode',title:'商户编码',type:'string',width:220,align:'left'},
                       {field:'merchantName',title:'商户名称',type:'string',width:220,align:'left'},
                       {field:'supplierCode',title:'供应商',type:'string',width:220,align:'left'}],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
